/*
 * Copyright (c) 2006, 2022, webrx.cn All rights reserved.
 *
 */
package main.java.cn.webrx;

import java.io.File;

/**
 * <p>Project: jse2204 - DirDelDemo
 * <p>Powered by webrx On 2022-09-21 09:04:04
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class DirDelDemo {
    public static void main(String[] args) {
        File ff = new File("dat");
        //ff.mkdirs();
        ff.delete();


        //删除目录 dat目录，dat是个空目录
        File f = new File("dat");
        //if(f.exists()) f.delete();
        System.out.println(f.delete());
    }
}
